<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>Update User</title>
</head>
<body>
<a href = '/home/'>Home</a>
	<a>{{msg}}</a>
      <form action="/logout/">
        <input type="submit" value="Logout">
      </form>

    <form action="/updateuser/" method="POST">
            {% csrf_token %}
            <p><label>User Name:</label> {{ uname }}</p>
            <p><label>Change email:</label> <input name="email" type="email" value="{{ email }}"/></p>
            <p><label>Change Password:</label> <input name="password1" type="password"/></p>
            <p><label>Confirmation Password:</label> <input name="password2" type="password" /> </p>
         <input type="submit" value="Save Changes">
    </form>
</body>
</html>